# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-melonds
pkgver=0_git20190912
pkgrel=0
_commit="42c1acd5c47dcda17288dcb64ea4adb8e13b8732"
pkgdesc="Nintendo DS emulator for libretro"
url="https://github.com/libretro/melonDS"
arch="all !mips !mips64"
license="GPL-3.0-only"
makedepends="mesa-dev"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/melonDS/archive/$_commit.tar.gz"
builddir="$srcdir/melonDS-$_commit"
options="!check" # No tests

build() {
	make
}

package() {
	install -Dm644 melonds_libretro.so "$pkgdir"/usr/lib/libretro/melonds_libretro.so
}

sha512sums="3ca81c1ef7269241ee6fe2af0861035712de47b7aa5c6e3068410ca3c3642c9b21547dfd45301600d218b0773d527f72fdcc427071a86bf68041ec54d3671be3  libretro-melonds-42c1acd5c47dcda17288dcb64ea4adb8e13b8732.tar.gz"
